package com.hougong.im.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 群成员表
 * </p>
 *
 * @author lsz
 * @since 2018-08-25
 */
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 群Id
     */
	@TableField("group_id")
	private Long groupId;
    /**
     * 成员用户Id
     */
	@TableField("member_id")
	private Long memberId;
    /**
     * 加入时刻
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 对群的备注名字
     */
	@TableField("group_remark")
	private String groupRemark;
    /**
     * 再群里的备注名字
     */
	@TableField("ingroup_remark")
	private String ingroupRemark;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getGroupId() {
		return groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getGroupRemark() {
		return groupRemark;
	}

	public void setGroupRemark(String groupRemark) {
		this.groupRemark = groupRemark;
	}

	public String getIngroupRemark() {
		return ingroupRemark;
	}

	public void setIngroupRemark(String ingroupRemark) {
		this.ingroupRemark = ingroupRemark;
	}

	@Override
	public String toString() {
		return "Member{" +
			"id=" + id +
			", groupId=" + groupId +
			", memberId=" + memberId +
			", createTime=" + createTime +
			", groupRemark=" + groupRemark +
			", ingroupRemark=" + ingroupRemark +
			"}";
	}
}
